import request from '../req'

// 电子签基本信息

export const getqueryeleinfoapi = async (data: any) => {
    return await request.get(`/saas/note/saasCompany/query-ele-info/${data.companyId}`)
}

// 电子签合同记录
export const getqueryelecontractrecordapi = async (data: any) => {
    return await request.get(`/saas/note/saasCompany/query-ele-contract-record`, {params: data})
}

// 获取模板列表
export const getquerycontracttemplateapi = async (data: any) => {
    return await request.get(`/saas/note/saasCompany/query-contract-template`, {params: data})
}

// 设置模板年限
export const updatetemplateapi = async (data: any) => {
    return await request.put(`/elesign/ele-sign-contract-template/update-template`, data)
}

// 电子签充值
export const elesignamountrechargeapi = async (data: any) => {
    return await request.put(`/elesign/ele-sign-recharge-record/ele-sign-amount-recharge`, data)
}

// 获取电子签总数据
export const getqueryeledataapi = async () => {
    return await request.get(`/elesign/ele_sign_amount_record/query-ele-data`)
}
// 电子签消费记录
export const getqueryaccountrecordapi = async (data: any) => {
    return await request.get(`/elesign/ele_sign_amount_record/query-account-record`, {params: data})
}

// 导出合同记录
export const exportelesigncontractrecordapi = async (data: any) => {
    return await request.get(`/saas/note/saasCompany/export-ele-sign-contract-record`, {params: data})
}

// 导出充值消费记录
export const exportczxfjlapi = async (data: any) => {
    return await request.get(`/elesign/ele_sign_amount_record/export-account-record`, {params: data})
}

// 导出合同模板
export const exportcontracttemplateapi = async (data: any) => {
    return await request.get(`/saas/note/saasCompany/export-contract-template`, {params: data})
}

